package LEKIEUANH.ARRAYS.EX02;

public class Controller {
	public static int average(int[] myArr){
		int sum = 0;
		for(int i=0;i<myArr.length;i++){
			sum+=myArr[i];
		}
		return sum/(myArr.length);
	}
	public static double average(double[] myArr){
		double sum = 0;
		for(int i = 0; i<myArr.length;i++){
			sum +=myArr[i];
		}
		return sum/(myArr.length);
	}
}
